# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=dustracing2d
_pkgname=DustRacing2D
pkgver=2.1.1
pkgrel=1
pkgdesc="Traditional top-down car racing game including a level editor"
url="http://juzzlin.github.io/DustRacing2D/"
arch="all"
license="GPL-3.0-or-later"
makedepends="cmake qt5-qttools-dev openal-soft-dev libvorbis-dev glu-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/juzzlin/DustRacing2D/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No test suite
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DReleaseBuild=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="9a49cd0302ab47b12ee587a33cc74c1df2bf6cf7925141cbf957fc90a5c1a34423d4420be28bcb6909a862daa12d6214b397fd0fc77e9e18fa649f3ca5c2e1ab  dustracing2d-2.1.1.tar.gz"
